home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
25.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
560b
|
28 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
int c=10;
switch(c) {
case 1:
printf("matched case 1\n");
case 3:
printf("matched case 3\n");
case 3+3:
printf("matched case 6\n");
case 'a':
printf("matched case a\n");
case 'b':
printf("matched case b\n");
case 10:
printf("matched case 10\n");
default:
printf("default\n");
}
}